<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <title>06_浮动后的小练习_2</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .floatleft {
            float: left;
        }
        .floatright {
            float: right;
        }
        .fixfloat::after {
            content: "";
            display: block;
            clear: both;
        }
        .container {
            width: 960px;
            background-color: cyan;
            margin: 0 auto;
            text-align: center;
        }
        .logo,.banner1,.banner2 {
            height: 80px;
            background-color: plum;
            line-height: 80px;
            
        }
        .logo {
            width:200px;
            margin-right: 10px;

        }
        .banner1 {
            width: 540px;
            margin-right: 10px;
        }
        .banner2 {
            width: 200px;
        }
        .menu {
           height: 30px;
           background-color: plum;
           line-height: 30px;
           margin-top: 10px;
        }
        .content {
            margin-top: 10px;
        }
       .item1,.item2 {
            width: 366px;
            height: 196px;
            border: 2px solid black;
            line-height: 196px;
            margin-right: 10px;
       }
       .item3,.item4,.item5,.item6 {
            width: 176px;
            height: 196px;
            border: 2px solid black;
            line-height: 196px;
            margin-right: 10px;
            margin-top: 10px;
        }

        .item7,.item8,.item9 {
            width: 196px;
            height: 126px;
            border: 2px solid black;
            line-height: 126px;
        }
        .item8 {
            margin-top: 10px;
            margin-bottom: 10px;
        }
        .footer {
            width: 960px;
            height: 60px;
            background-color: plum;
            line-height: 60px;
            margin-top: 10px;
        }
    </style>
</head>

<body>  
    <div class="container">
        <!-- 头部 -->
        <div class="page-header fixfloat">
            <div class="logo floatleft">logo</div>
            <div class="banner1 floatleft">banner1</div>
            <div class="banner2 floatleft">banner2</div>
        </div>
        <!-- 菜单 -->
        <div class="menu">菜单</div>
        <!-- 内容 -->
        <div class="content fixfloat">
            <!-- 左部 -->
            <div class="left  floatleft">
                <!-- 顶部 -->
                <div class="top fixfloat">
                    <div class="item1 floatleft">栏目1</div>
                    <div class="item2 floatleft">栏目2</div>
                </div>
                <!-- 底部 -->
                <div class="bottom fixfloat">
                    <div class="item3 floatleft">栏目3</div>
                    <div class="item4 floatleft">栏目4</div>
                    <div class="item5 floatleft">栏目5</div>
                    <div class="item6 floatleft">栏目6</div>
                </div>
            </div>  
            <!-- 侧面 --> 
            <div class="right  floatright">
                <div class="item7">栏目7</div>
                <div class="item8">栏目8</div>
                <div class="item9">栏目9</div>
            </div>
        </div>
        <div class="footer">页脚</div>
    </div>
</body>

</html>
